import router from './router'
import Vue from 'vue'
// import store from './store'

router.beforeEach((to, from, next) => {
  // if(Vue.prototype.$cancel) {
  //   Vue.prototype.$cancel()
  // }
  // next({ to, replace: true })
  next()
})

router.afterEach(() => {
  //   NProgress.done() // finish progress bar

  // console.log('router after');
})